package com.nbgs.demo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nbgs.demo.controller.form.BillMessage;
import com.nbgs.demo.dao.WaterBillMapper;
import com.nbgs.demo.model.WaterBill;
import com.nbgs.demo.service.WaterBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WaterBillServiceImpl implements WaterBillService {
    @Autowired
    private WaterBillMapper waterBillMapper;


    @Override
    public IPage<BillMessage> showSum(Page<BillMessage> page, String areaName) {
        return waterBillMapper.showSum(page, areaName);
    }

    @Override
    public int getTotal(String areaName) {
        return waterBillMapper.getTotal(areaName);
    }
}
